#ifndef CARDPOOLVIEWOBJECT_H
#define CARDPOOLVIEWOBJECT_H

#include <QGraphicsItem>

#include <QGraphicsScene>
#include <QGraphicsView>
#include <QPainter>
#include <QStyleOption>

#include "cardpool.h"
#include "IViewObjectData.h"

class CardPoolViewObject : public QGraphicsItem, public ICardViewObjectData
{
public:
    CardPoolViewObject(CardPool *cardpool = 0);

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
               QWidget *widget);
    QRectF boundingRect() const;
    QPainterPath shape() const;

    virtual CardViewObjectData *getViewObjectInformation();

    QRect cardPoolRect;

private:
    CardPool *m_CardPool;

};

#endif // CARDPOOLVIEWOBJECT_H
